package com.yeshine.opendata.core;


import com.yeshine.opendata.utils.PageResult;

import java.util.List;

/**
 * Created by taohj on 2014/4/1.
 */
public  interface IDao<T extends  EntityBase> {


    public abstract int insert(T entity);

    public abstract int delete(T entity);

    public abstract int update(T entity);

    public abstract T  selectById(int id);


    public abstract List<T> selectbyPage(PageResult<T> pageResult);


    List<T> selectList(T t);

    T select(T t);
}
